package com.itheima.thread3;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;

public class Demo02 {

    public static void main(String[] args) throws ExecutionException, InterruptedException {
        FutureTask<Integer> task = new FutureTask<>(() -> 123);
        new Thread().start();

        Integer integer = task.get();

    }
}
